FROM debian:stretch-slim

RUN apt-get -y update && apt-get --no-install-recommends --no-install-suggests  -y install apache2 \
	php7.0 php7.0-mysql \
	php7.0-zip php7.0-mbstring php7.0-xml php7.0-json \
	php7.0-gd php7.0-curl php-redis php7.0-bcmath \
	php7.0-opcache libapache2-mod-php7.0 && rm -rf /var/lib/apt/lists/* \ 
	&& apt-get clean all && apt-get autoremove && apt-get autoclean \
	&& sed -i "70i ServerName localhost:80" /etc/apache2/apache2.conf \
	&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

EXPOSE 80 443
VOLUME /var/www/html
WORKDIR /var/www/html
CMD service apache2 start && tail -f /var/log/apache2/access.log
